package entities;


import java.io.Serializable;

import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

@XmlType(name="User")
@XmlRootElement
public class User implements Serializable{
	private String id;
	private String username;
	private String password;
	private String fname;
	private String lname;
	private String email;
	private String role;
	
	public User(){
		
	}
	
	
	//Getters
	public String getId() {
		return id;
	}
	public String getUsername() {
		return username;
	}
	public String getPassword() {
		return password;
	}
	public String getFname() {
		return fname;
	}
	public String getLname() {
		return lname;
	}
	public String getEmail() {
		return email;
	}
	public String getRole(){
		return this.role;
	}
	
	
	//Setters
	public void setId(String id) {
		this.id = id;
	}	
	public void setUsername(String username) {
		this.username = username;
	}	
	public void setPassword(String password) {
		this.password = password;
	}
	public void setFname(String fname) {
		this.fname = fname;
	}
	public void setLname(String lname) {
		this.lname = lname;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public void setRole(String role){
		this.role = role;
	}

	@Override
	public String toString() {
		String s = "Username: " + username + "\n";
		s += "First Name: " + fname + "\n";
		s += "Last Name: " + lname + "\n";
		s += "Email: " + email + "\n";
		return s;
	}
}
